package br.com.investmenttracker.dao;

import java.util.List;

import br.com.caelum.vraptor.ioc.Component;
import br.com.investmenttracker.modelo.Proprietario;

@Component
public class ProprietarioDao {
	
	public List<Proprietario> listaProprietariosUsuario(Long id){
		return em.createQuery("Select p from Proprietario p where p.usuario.id="+id).getResultList();
	}
}
